dragsource: Reshuffle api a bit
authorMatthias Clasen <mclasen@redhat.com>
Mon, 6 Jan 2020 19:46:14 +0000 (14:46 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 8 Jan 2020 23:48:21 +0000 (18:48 -0500)
commite8b830a3ddbfe5d1b162e4dfa678d5e323c78267
tree5fa9d9e1c59d6827addd6539014544965d5a2e0a
parent38974d7d2bc56496b45e1b7406d68a37009530d7
dragsource: Reshuffle api a bit

Remove arguments from the constructor.

For actions, we now default to COPY, which is the most common one
that we should enable by default (MOVE requires handling deletion
on the the source side, and ASK only makes sense if we have
multiple actions).

For the content provider, we add a new ::prepare signal where
it should be provided just-in-time.
21 files changed:
demos/gtk-demo/clipboard.c
demos/icon-browser/iconbrowserwin.c
gtk/gtkcalendar.c
gtk/gtkcolorbutton.c
gtk/gtkcolorswatch.c
gtk/gtkdragsource.c
gtk/gtkdragsource.h
gtk/gtkentry.c
gtk/gtkiconview.c
gtk/gtklabel.c
gtk/gtklinkbutton.c
gtk/gtknotebook.c
gtk/gtkpathbar.c
gtk/gtkplacessidebar.c
gtk/gtktext.c
gtk/gtktextview.c
gtk/gtktreeview.c
tests/testdnd.c
tests/testdnd2.c
tests/testlist3.c
tests/testtoolbar.c